<?php echo $this->Session->flash(); ?>
<?php $bloqueo = $this->Session->read('bloqueo_avaluo'); ?>
<h1 align="center">ZONAS HOMOGÉNEAS</h1>


<table  id="tabla" class="tabla" width="100%" >
    <thead>
        <tr>
            <th>Código</th>
            <th>Valor</th>
            <th>Descripción</th>
            <th>Área terreno</th>
            <th>Área construcción</th>
            <th colspan="2">Opciones</th>

        </tr>
    </thead>
    <tbody>
        <?php foreach ($zonas as $zona): ?>
            <tr>
                <td><?php echo $zona['UniformZone']['codigo'] ?></td>
                <td><?php echo $zona['UniformZone']['valor'] ?></td>
                <td><?php echo $zona['UniformZone']['descripcion'] ?></td>
                <td><?php echo $zona['UniformZone']['area_terreno'] ?></td>
                <td><?php echo $zona['UniformZone']['area_construccion'] ?></td>
                <td><?php if ($bloqueo == "No")
            echo $ajax->link("Editar", array('controller' => 'UniformZones', "action" => "edit", $zona['UniformZone']['id']), array('update' => 'catastral', 'complete' => 'mayusculas()', 'indicator' => 'loading')) ?></td>
                <td><?php if ($bloqueo == "No")
            echo $ajax->link("Borrar", array('controller' => 'UniformZones', "action" => "delete", $zona['UniformZone']['id'], $zona['UniformZone']['property_id']), array('update' => 'catastral', 'complete' => 'mayusculas()', 'indicator' => 'loading'), 'Desea borrar el registro?', false) ?></td>
            </tr>
<?php endforeach; ?>
    </tbody>
</table>
<br>
<br>
<legend>
    <?php if($bloqueo=="No") echo $ajax->link("Agregar Zona", array('controller' => 'UniformZones', "action" => "add", $predio), array('update' => 'catastral', 'complete' => 'mayusculas()', 'indicator' => 'loading')) ?>
</legend>
<br>
<br>
<?php echo $ajax->link($html->image("regresar.gif", array('width' => '30', 'heigth' => '30', 'alt' => 'regresar', 'align' => 'center')), array('controller' => 'PropertyAppraisals', "action" => "catastral_index"), array('escape' => false, 'update' => 'catastral', 'complete' => '', 'indicator' => 'loadingx')); ?>




